package com.ccp.dev.workflow.model;

/**
 * 流程授权子表授权用户Model
 * @author zhanghuichao zhhchyouxiang@126.com
 * @date 2019/7/9 11:32
 */
public class BpmDefAuthorizeUser {

    public final static class BPM_DEF_USER_RIGHT_TYPE{
        private BPM_DEF_USER_RIGHT_TYPE(){}

        /**所有用户 */
        public static final String ALL = "all";
        /**用户 */
        public static final String USER = "user";
        /**角色*/
        public static final String ROLE = "role";
        /**角色*/
        public static final String PUBLICROLE = "publicRole";
        /**组织(本层级)*/
        public static final String ORG = "org";
        /**岗位*/
        public static final String POSITION = "position";
        /**组织（包含子组织)*/
        public static final String GRANT = "grant";
    }

    /**
     * 主键
     */
    protected String id;

    /**
     * 流程分管权限主表ID
     */
    protected String authorizeId;

    /**
     * 权限所有者ID
     */
    protected String ownerId;

    /**
     * 权限所有者名称
     */
    protected String ownerName;

    /**
     * 权限类型
      */
    protected String rightType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAuthorizeId() {
        return authorizeId;
    }

    public void setAuthorizeId(String authorizeId) {
        this.authorizeId = authorizeId;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getRightType() {
        return rightType;
    }

    public void setRightType(String rightType) {
        this.rightType = rightType;
    }
}
